#include "SeqList.h"

void TestSeqList1()
{
	SL s;
	SLInit(&s);

	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);

	SLPrint(&s);

	SLPushFront(&s, 7);

	SLPrint(&s);

	SLPopBack(&s);
	SLPopBack(&s);
	SLPopBack(&s);
	SLPopBack(&s);
	SLPopBack(&s);

	SLInsert(&s, 0, 4);
	SLPrint(&s);

	SLInsert(&s, 2, 5);
	SLPrint(&s);

	SLInsert(&s, 1, 4);
	SLPrint(&s);

	SLErase(&s, 1);

	SLPrint(&s);

	SLFind(&s, 4);

	SLPrint(&s);


	SLDestroy(&s);
}

int main()
{
	TestSeqList1();
	return 0;
}